package com.mindao.app.site.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mindao.app.common.spring.model.BaseModel;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述：公司活动报名
/*
/* 创 建 人：李国才
/* 创建时间：2016年6月16日 上午11:22:00 	
 **/
@Entity
@Table(name = "site_event_enroll")
public class EventEnroll extends BaseModel{
	public final static int DISABLED_TRUE=1;    //有效
	public final static int DISABLED_FALSE=0;    //失效
	
	//微信id
	private String openid;
	//微信昵称
	private String nickname;
	//内网用户id
	private Long userId;
	//姓名
	private String name;
	//QQ
	private String qq;
	//手机
	private String phoneNumber;
	
	//活动
	private Event event;
	
	//多活动主题时，报名的活动主题
	private String enrollSubjects;
	
//	//报名时间,see createTime
//	private Date enrollDate;
	
	//报名取消
	private Integer disabled;
	

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getEnrollSubjects() {
		return enrollSubjects;
	}
	
	@ManyToOne(fetch = FetchType.EAGER)  
	@JoinColumn(name = "event_id", nullable = true)
	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}

	public void setEnrollSubjects(String enrollSubjects) {
		this.enrollSubjects = enrollSubjects;
	}

//	public Date getEnrollDate() {
//		return enrollDate;
//	}
//
//	public void setEnrollDate(Date enrollDate) {
//		this.enrollDate = enrollDate;
//	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getDisabled() {
		return disabled;
	}

	public void setDisabled(Integer disabled) {
		this.disabled = disabled;
	}
	
	
	
	
}
